import * as math from 'mathjs'

const myMath = {
  // 加法
  add() {
    return math.format(math.add(math.bignumber(1.1), math.bignumber(2.2)))
  },
  //减法
  sub() {
    return math.format(math.subtract(math.bignumber(1.1), math.bignumber(2.2)))
  },
  //乘法
  mult() {
    return math.format(math.multiply(math.bignumber(1.1), math.bignumber(2.2)))
  },
  //除法
  divi() {
    return math.format(math.divide(math.bignumber(1.1), math.bignumber(2.2)))
  }
}

export default myMath
